package com.perceptivesoftware.licensing.server.util;

import java.util.ArrayList;
import java.util.List;

import com.perceptivesoftware.licensing.client.common.util.Utils;
import com.perceptivesoftware.licensing.domain.generated.TwUserval;

public class EntityUtils
{

	public static List<TwUserval> getNotDeletedUservals(List<TwUserval> inUservals)
	{
		final ArrayList<TwUserval> ret = new ArrayList<TwUserval>();
		for (final TwUserval userval : inUservals)
		{
			if (!Utils.isY(userval.getUservalDeleted()))
			{
				ret.add(userval);
			}
		}
		return ret;
	}

}
